<script setup lang="ts">
import { ref } from "vue";
import TemplateDemo from "@/components/TemplateDemo.vue";

const pageTitle = ref("组件模板演示");
const pageDescription = ref("物理实验数据处理平台的组件开发模板和示例");
</script>

<template>
  <div class="dev-view">
    <div class="dev-header">
      <h1 class="dev-title">{{ pageTitle }}</h1>
      <p class="dev-description">{{ pageDescription }}</p>
    </div>

    <div class="dev-content">
      <TemplateDemo />
    </div>
  </div>
</template>

<style scoped>
.dev-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dev-header {
  margin-bottom: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.dev-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.dev-description {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.5;
}

.dev-content {
  flex: 1;
}
</style>
